<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width"><title>http://www.135editor.com/js/ueditor/dialogs/135editor/135EditorDialogPage.html</title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="highlight" style="tab-size: 4"><pre id="line1"><span></span><span class="doctype">&lt;!DOCTYPE html&gt;</span><span>
<span id="line2"></span></span><span>&lt;<span class="start-tag">html</span>&gt;</span><span>
<span id="line3"></span></span><span>&lt;<span class="start-tag">head</span>&gt;</span><span>
<span id="line4"></span>  </span><span>&lt;<span class="start-tag">meta</span> <span class="attribute-name">http-equiv</span>="<a class="attribute-value">Content-Type</a>" <span class="attribute-name">content</span>="<a class="attribute-value">text/html; charset=utf-8</a>"<span>/</span>&gt;</span><span>
<span id="line5"></span>  </span><span>&lt;<span class="start-tag">title</span>&gt;</span><span>135编辑器外部编辑调用</span><span>&lt;/<span class="end-tag">title</span>&gt;</span><span>
<span id="line6"></span>  </span><span>&lt;<span class="start-tag">style</span>&gt;</span><span>
<span id="line7"></span>    html, body {
<span id="line8"></span>      padding: 0;
<span id="line9"></span>      margin: 0;
<span id="line10"></span>    }
<span id="line11"></span>    #editor135 {
<span id="line12"></span>      position: absolute;
<span id="line13"></span>      width: 100%;
<span id="line14"></span>      height: 100%;
<span id="line15"></span>      border: none;
<span id="line16"></span>      box-sizing: border-box;
<span id="line17"></span>    }
<span id="line18"></span>  </span><span>&lt;/<span class="end-tag">style</span>&gt;</span><span>
<span id="line19"></span></span><span>&lt;/<span class="end-tag">head</span>&gt;</span><span>
<span id="line20"></span></span><span>&lt;<span class="start-tag">body</span>&gt;</span><span>
<span id="line21"></span></span><span class="comment">&lt;!-- 如需要appkey进行额外私有化等对接，请联系QQ: 285694665   微信: hncszdb --&gt;</span><span>
<span id="line22"></span></span><span>&lt;<span class="start-tag">iframe</span> <span class="attribute-name">id</span>="<a class="attribute-value">editor135</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://www.135editor.com/simple_editor.html?callback=true&amp;appkey=">https://www.135editor.com/simple_editor.html?callback=true<span><span>&amp;</span>app</span>key=</a>"&gt;</span><span></span><span>&lt;/<span class="end-tag">iframe</span>&gt;</span><span>
<span id="line23"></span></span><span>&lt;<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:http://www.135editor.com/js/ueditor/dialogs/internal.js?t=1458602018">../../dialogs/internal.js?t=1458602018</a>"&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span><span>
<span id="line24"></span></span><span>&lt;<span class="start-tag">script</span>&gt;</span><span>
<span id="line25"></span>  var editor135 = document.getElementById('editor135');
<span id="line26"></span>  
<span id="line27"></span>  window.onload = function () {
<span id="line28"></span>	  setTimeout(function(){
<span id="line29"></span>		  editor135.contentWindow.postMessage(editor.getContent(),'*');
<span id="line30"></span>	  },3000);    
<span id="line31"></span>  };
<span id="line32"></span>  document.addEventListener("mousewheel", function (event) {
<span id="line33"></span>    event.preventDefault();
<span id="line34"></span>    event.stopPropagation();
<span id="line35"></span>  });
<span id="line36"></span>  window.addEventListener('message', function (event) {
<span id="line37"></span>      if (typeof event.data !== 'string') return;
<span id="line38"></span>      editor.setContent(event.data);
<span id="line39"></span>      editor.fireEvent("catchRemoteImage"); 
<span id="line40"></span>      dialog.close();
<span id="line41"></span>  }, false);
<span id="line42"></span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span><span>
<span id="line43"></span></span><span>&lt;/<span class="end-tag">body</span>&gt;</span><span>
<span id="line44"></span></span><span>&lt;/<span class="end-tag">html</span>&gt;</span><span></span></pre></body></html>